﻿using Dapr.Actors;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyActor.Interfaces
{
    public interface IInventory : IActor
    {
        /// <summary>     
        /// /// 扣除库存(无锁), 该方法单线程执行     
        /// /// </summary>          
        Task<string> SubtractAsync(OrderItem orderItem,ActorId actorId);
    }
}
